<template>
<h1>EL-选择器组件</h1>
  <el-select v-model="city" style="width: 50%;">
    <el-option value="bj" label="北京"></el-option>
    <el-option  value="sh" label="上海"></el-option>
    <el-option  value="gz" label="广州"></el-option>
    <el-option  value="hz" label="杭州"></el-option>
    <el-option  value="xh" label="西湖"></el-option>
    <el-option  value="xs" label="萧山"></el-option>
  </el-select>
  <h4>您选择的城市是：{{city}}</h4>

</template>

<script setup>
import {ref} from "vue";

const city= ref()
;</script>

<style scoped>

</style>